home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Telnet 2.7b5 / source / network / network.proto.h < prev   
Encoding:
Text File  |  1995-03-12  |  819 b   |  27 lines  |  [TEXT/CWIE]

  1. void    SetPortType(short port, short type);
  2. short    GetPortType(short port);
  3. short    netread(short pnum, void *buffer, short n);
  4. short    netwrite(short pnum, void *buffer, short nsend);
  5. short netpush(short pnum);
  6. short netqlen(short pnum);
  7. short netroom(short pnum);
  8. void netgetip(unsigned char *st);
  9.  
  10. void netfromport            /* next "open" will use this port */
  11.   (
  12.     short port
  13.   );
  14.  
  15. short netest(short pnum);
  16. short netlisten(ip_port serv);
  17. short    netgetftp(short pnum, ip_addr *addr, ip_port *localPort, ip_port *remotePort);
  18. short netxopen( ip_addr machine, ip_port service, short timeout);
  19. short netclose(short pnum);
  20. short    netabort(short pnum);
  21. void Mnetinit( void);
  22. void netshut(void);
  23. short    findbystream(StreamPtr streamPtr);
  24. short netportencryptstate (short port, Ptr edata);
  25. void networkUPPinit(void);
  26. void netUrgent(void);
  27.